def remove(arr):

    T = list()
    a = ""
    for i in range(len(arr)):
        if arr[i] not in T:
            T.append(arr[i])
            a = a+arr[i]
    return a

arr = input()
a = remove(arr)
print(a)
